<template>
	<view>
		<view class="stu_top">
			<view class="title">{{student.name}}</view>
			<view class="">
				年龄：{{student.age}}
			</view>
			<view class="">
				性别： {{student.sex}}
			</view>
			<view class="">
				班级： {{student.classNo}}
			</view>
			<view class="">
				籍贯： {{student.ji}}
			</view>
			
		</view>
		
		<view class="stu_table">
			<view class="">
				<view class="">
					阶段考试科目
				</view>
				<view class="">
					考试成绩(5分制)
				</view>
			</view>
			<view class="" v-for="(item,index) in score" :key="index">
				<view class="">
					{{item.kaoName}}
				</view>
				<view class="">
					{{item.score}}
				</view>
			</view>
			
			
		</view>
	</view>
</template>

<script>
	export default {
		props:["student","score"],
		data() {
			return {
				
			}
		},
		methods: {
			
		},
		
	}
</script>

<style>
table{
	width: 100%;
}
table th{
	width: 50%;
}
table td{
	text-align: center;
}
.stu_top{
	width: 80%;
	margin: 0 auto;
	margin-bottom: 20rpx;
}
.stu_top>view{
	margin-top: 20rpx;
}
.stu_table{
	border-top: 1px solid #000000;
	padding-top: 10rpx;
}
.stu_table>view{
	display: flex;
	
	text-align: center;
}
.stu_table>view>view{
	width: 50%;
}
.stu_table>view:nth-child(1) {
	font-weight: bold;
}
.title{
	font-size: 60rpx;
	font-weight: bold;
}
</style>
